class CreateArticles < ActiveRecord::Migration
  def self.up
    create_table :articles do |t|
      t.string :title
      t.text :body
      t.integer :visited, :default => 0
      t.integer :ding, :default => 0
      t.integer :cai, :default => 0

      t.integer :user_id

      t.timestamps
    end
  end

  def self.down
    drop_table :articles
  end
end
